package com.qr.bean.wmyw;

import java.sql.Timestamp;
import com.baomidou.mybatisplus.annotation.Version;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotNull;
/**
 * @author: zc
 * email: zc8023zs@163.com
 * create_time: 2020/8/13 10:22:27
 * 分离出查询实体
 */
@ApiModel(value = "qr_favorite", description = "收藏")
@TableName(value = "qr_favorite")
public class QrFavoriteView implements Serializable {
	@ApiModelProperty(value = "标识")
	@TableId(type = IdType.AUTO,value = "favorite_id")
	@NotNull(message = "标识不能为空")
	private Integer favorite_id;
	@ApiModelProperty(value = "运营中心id")
	@TableField(value="oc_id")
	private Integer oc_id;
	@ApiModelProperty(value = "店铺/门店id")
	@TableField(value="shop_id")
	private Integer shop_id;
	@ApiModelProperty(value = "用户id")
	@TableField(value="uid")
	private Integer uid;
	@ApiModelProperty(value = "收藏类型:门店=1 商品=2")
	@TableField(value="favorite_type")
	private Integer favorite_type;
	@ApiModelProperty(value = "资源id")
	@TableField(value="favorite_rid")
	private Integer favorite_rid;
	@ApiModelProperty(value = "发生时间")
	@TableField(value="create_time")
	private Timestamp create_time;
	@ApiModelProperty(value = "乐观锁标识")
	@TableField(value="version_id")
	@Version
	private Integer version_id;

 
	public Integer getFavorite_id() {
		return favorite_id;
	}
	public void setFavorite_id(Integer favorite_id) {
		this.favorite_id = favorite_id;
	}
 
	public Integer getOc_id() {
		return oc_id;
	}
	public void setOc_id(Integer oc_id) {
		this.oc_id = oc_id;
	}
 
	public Integer getShop_id() {
		return shop_id;
	}
	public void setShop_id(Integer shop_id) {
		this.shop_id = shop_id;
	}
 
	public Integer getUid() {
		return uid;
	}
	public void setUid(Integer uid) {
		this.uid = uid;
	}
 
	public Integer getFavorite_type() {
		return favorite_type;
	}
	public void setFavorite_type(Integer favorite_type) {
		this.favorite_type = favorite_type;
	}
 
	public Integer getFavorite_rid() {
		return favorite_rid;
	}
	public void setFavorite_rid(Integer favorite_rid) {
		this.favorite_rid = favorite_rid;
	}
 
	public Timestamp getCreate_time() {
		return create_time;
	}
	public void setCreate_time(Timestamp create_time) {
		this.create_time = create_time;
	}
 
	public Integer getVersion_id() {
		return version_id;
	}
	public void setVersion_id(Integer version_id) {
		this.version_id = version_id;
	}

}